﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/ShenBaoYBQY.master" AutoEventWireup="true"
    CodeFile="fengmian.aspx.cs" Inherits="ybqy_Default" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
    <script language="javascript" type="text/javascript" src="../kongjian/Lodop/LodopFuncs.js"></script>
    <script language="javascript" type="text/javascript" src="../kongjian/myjs/myjs.js"></script>
    <table style="width: 924px;">
        <tr>
            <td style="width: 456px">
                <table class="style1" style="width: 97%">
                    <tr>
                        <td style="width: 104px">
                            申报登记代码
                        </td>
                        <td style="width: 328px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="307px" onclick="gettishi('10100001')"
                                OnTextChanged="TextBox1_TextChanged" ReadOnly="True" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                    <Services>
                        <asp:ServiceReference Path="../Service.svc" />
                    </Services>
                </asp:ScriptManager>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center; font-size: x-large">
                排放污染物申报登记表（试行）
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <span style="font-size: x-large">申报年度：<asp:TextBox ID="TextBox2" runat="server" Width="76px"
                    onclick="gettishi('10100002')" ReadOnly="True" BorderStyle="None"></asp:TextBox>
                </span>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <table class="style1">
                    <tr>
                        <td style="width: 103px">
                            行政区划代码
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox3" runat="server" Width="181px" OnTextChanged="TextBox3_TextChanged"
                                onclick="gettishi('10100003')" ReadOnly="True" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                <table class="style1">
                    <tr>
                        <td style="width: 138px">
                            单位名称（盖章）
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox4" runat="server" Width="302px" onclick="gettishi('10100007')"
                                BorderStyle="None" ReadOnly="True"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                法定代表人（签章）<asp:TextBox ID="TextBox5" runat="server" OnTextChanged="TextBox5_TextChanged"
                    onclick="gettishi('10100004')" ReadOnly="True"></asp:TextBox>
            </td>
            <td>
                申报单位法人代码<asp:TextBox ID="TextBox7" runat="server" Width="257px" onclick="gettishi('10100008')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                填表人<asp:TextBox ID="TextBox6" runat="server" onclick="gettishi('10100006')" ReadOnly="True"></asp:TextBox>
            </td>
            <td>
                报出日期：<asp:TextBox ID="TextBox8" runat="server" Width="56px" onclick="gettishi('10100009')"
                    ReadOnly="True"></asp:TextBox>年
                <asp:TextBox ID="TextBox9" runat="server" Width="34px" onclick="gettishi('10100009')"
                    ReadOnly="True"></asp:TextBox>月
                <asp:TextBox ID="TextBox10" runat="server" Width="37px" onclick="gettishi('10100009')"
                    ReadOnly="True"></asp:TextBox>日
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="Button2" runat="server" Text="确认" Width="70px" OnClick="Button1_Click" />
                <asp:Label ID="Label3" runat="server" Width="100px"></asp:Label>
                <input id="Button5" type="button" onclick="PrintOneURL('print/fengmian.aspx')" value="打印本页" />
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea1" name="S1" rows="3" style="width: 430px; height: 45px" readonly="readonly"></textarea>
            </td>
            <td>
                <textarea id="TextArea2" name="S2" style="width: 430px; height: 45px; font-size: xx-large;
                    color: #FF0000; font-weight: 700;" cols="20" readonly="readonly"></textarea>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea3" name="S3" rows="3" style="width: 430px; height: 45px" cols="20"></textarea>
            </td>
            <td>
                <asp:TextBox ID="TextBox100" runat="server" Height="45px" TextMode="MultiLine" Width="430px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 456px; height: 144px;">
            </td>
            <td style="height: 144px">
            </td>
        </tr>
    </table>
    <input id="Text100" style="visibility: hidden" type="text" value="<%=DisplayStr()%>"
        disabled="disabled" />
    <script type="text/javascript">
        function gettishi(str) {
            var str2 = document.getElementById("Text100").value;
            str2.replace(/\'/g, "\"");
            //取得文本框的值
            var arr = eval(str2);
            document.getElementById("TextArea1").value = '';
            document.getElementById("TextArea2").value = '';
            document.getElementById("TextArea3").value = '';


            for (var i = 0; i < arr.length; i++) {
                if (arr[i].tishiid == str) {
                    if (arr[i].ti1.length > 0) {
                        document.getElementById("TextArea1").value = arr[i].idmingcheng + "填写说明:  " + arr[i].ti1;
                    }
                    if (arr[i].ti2.length > 0) {
                        document.getElementById("TextArea2").value = arr[i].ti2;
                    }
                    if (arr[i].ti3.length > 0) {
                        document.getElementById("TextArea3").value = arr[i].idmingcheng + "填写例子:  " + arr[i].ti3;
                    }
                }
            }



        }
    </script>
</asp:Content>
